<?php
$this->headTitle($this->translate('Query person'));
//style
$this->headStyle('
#person{width:100%;margin:21px 0px;background-color: #D7E8F5;border: 1px solid #8FC5F1;}
#person th,#person td{background-color:#FFFFFF;}
#person thead td,#person tfoot td{padding:16px 4px;}
#person tbody td{padding:5px 3px;1px solid #CED2D0;}

#fid{width:98px;}
#name{width:98px;}
#id_number{width:165px;}
#archiving_created{width:45px;}
');
?>

<h2>
	<span><?php echo $this->translate('Query person')?></span>
</h2>

<?php if (count($this->paginator)): ?>
<table id="person" cellpadding="3" cellspacing="1">
<thead class="fieldset">
    <tr>
        <td width="12%">户编码</td>
        <td width="6%">姓名</td>
        <td width="4%">性别</td>
        <td width="4%">民族</td>
        <td width="15%">身份证</td>
        <td width="7%">婚姻状况</td>
        <td width="8%">文化程度</td>
        <td width="8%">户口性质</td>
        <td width="8%">建档日期</td>
        <td width="8%">政策类型</td>
        <td width="8%">统计类型</td>
        <td width="12%">居住地址</td>
    </tr>
</thead>
<tbody>
<?php foreach ($this->paginator as $people): ?>
    <tr>
        <td><?php echo $people->fid?></td>
        <td><a href="<?php echo $this->url(array(
                    'controller'=> 'family',
                    'action'=> 'browse',
                    'fid'=> $people['fid']))?>"><?php echo $people->name?></a></td>
        <td><?php echo $people->gender?></td>
        <td><?php echo $people->national?></td>
        <td><?php echo $people->id_number?></td>
        <td><?php echo $people->marital_status?></td>
        <td><?php echo $people->education?></td>
        <td><?php echo $people->account_nature?></td>
        <td><?php echo $people->archiving_created?></td>
        <td><?php echo $people->policy_type?></td>
        <td><?php echo $people->statistics_type?></td>
        <td><?php echo $people->living_place?></td>
	</tr>
<?php endforeach;?>
</tbody>
<tfoot>
<tr>
    <td colspan="12"><?php echo $this->paginationControl($this->paginator, 'Sliding', array('pagination.phtml','people')); ?></td>
</tr>
</tfoot>
</table>
<?php endif;?>

<?php echo $this->form;?>